package ar.uade.edu.fain.ad.server.business;

import ar.uade.edu.fain.ad.common.transfer.LoginVO;
import ar.uade.edu.fain.ad.common.transfer.LoginVO.Rol;

public class Administrador extends Empleado {

	private Administracion administracion;

	public Administrador() {
		super();
	}

	public Administracion getAdministracion() {
		return administracion;
	}

	public void setAdministracion(Administracion administracion) {
		this.administracion = administracion;
	}

	@Override
	public LoginVO createLoginVO() {
		final LoginVO loginVO = new LoginVO();
		loginVO.setEmpleadoVO(toVO());
		loginVO.setAreaId(getAdministracion().getId());
		loginVO.setLocalId(null);
		loginVO.setRol(Rol.ADMINISTRADOR);
		return loginVO;
	}

}
